package cn.wolfcode.wolf2w.business.service;


import cn.wolfcode.wolf2w.business.domain.Strategy;
import cn.wolfcode.wolf2w.business.repository.StrategyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
@Service
public class StrategyService {

    @Autowired
    private StrategyRepository strategyRepository;
    /**
     * @param queue => quesion
     * @param size => topk
     * @return
     */
    public List<Strategy>  search(String queue,int size) throws IOException {

        return strategyRepository.search(queue,size);
    }
}
